package com.wyc.service.impl;

import com.wyc.mapper.Dept_logMapper;
import com.wyc.pojo.Dept_log;
import com.wyc.service.Dept_logService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class Dept_logServiceImpl implements Dept_logService {
    @Autowired
    private Dept_logMapper dept_logMapper;

    @Transactional(propagation = Propagation.REQUIRES_NEW)
    @Override
    public void save(Dept_log dept_log) {
        dept_logMapper.insert(dept_log);
    }
}
